package org.sn.jdish.spring.boot.biz;

import org.sn.jdish.spring.boot.base.Config;
import org.sn.jdish.spring.boot.vo.DemoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DemoBiz {

	@Autowired
	private Config config;

	public String sayHello(String name) {
		return "hello, " + name + "! " + config.getEvnName();
	}

	public String sayHello(DemoVo vo) {
		return "hello, " + vo.getName();
	}

}
